The Dreamweaver JavaScript API > CSS style functions > dreamweaver.cssStylePalette.getSelectedStyle() |
![]() ![]() ![]() |
dreamweaver.cssStylePalette.getSelectedStyle()
Availability
Dreamweaver 3.0
Description
Gets the name of the style that is currently selected in the Style panel.
Arguments
None.
Returns
A string representing the name of the style, or an empty string if no style is selected.
Enabler
None.
Example
If the style red
is selected, as shown, a call to dw.cssStylePalette.getSelectedStyle()
returns "red"
.
![]() ![]() ![]() |